package com.xd.service.admin.XTGLY.impl;

import com.xd.Mapper.EmployLogin;
import com.xd.pojo.User;
import com.xd.service.admin.XTGLY.AdminLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminLoginServiceImpl implements AdminLoginService {
    @Autowired
    EmployLogin employLogin;
    @Override
    public Boolean getUser(User user) {
        User userName = employLogin.getUserName(user.getUserName(), user.getPassword());
        if (userName!=null){
            return true;
        }else {
            return false;
        }
    }
}
